اینو حتماً شنیدید: توی پایتون GIL باعث میشه multi-thread واقعی نداشته باشیم.
حالا من چندتا سوال سطح بالاتر میپرسم، میخوام این سوالا رو توی مصاحبههای سطح سنیور و مید استفاده کنم :
۱- مگر نه اینکه GIL باعث میشه در لحظه فقط یک thread توی پایتون اجرا بشه؟ پس چرا کتابخونه threading داریم ؟
۲- توی یک برنامه کاملاً پایتونی ( fortran, C, ... درگیر نباشه) بنظر شما کدوم مورد سریعتر هست و چرا ؟
threading یا asynchronous
۳- حالتی به ذهنت میرسه که توی یک کد کاملا پایتونی استفاده از threading بهتر از asynchronous باشه ؟
چرا این سوالات ؟ چون خسته شدم انقدر که سختترین سوال مصاحبه این بود که؛ کی از threading استفاده کنیم کی از multi-process ؟ گفتم چندتا سوال خوب برای مصاحبه طرح کنم، البته دارم روش کار میکنم. ۴-۵ تا دیگه اضافه میشه
اینو حتماً شنیدید: توی پایتون GIL باعث میشه multi-thread واقعی نداشته باشیم.
حالا من چندتا سوال سطح بالاتر میپرسم، میخوام این سوالا رو توی مصاحبههای سطح سنیور و مید استفاده کنم :
۱- مگر نه اینکه GIL باعث میشه در لحظه فقط یک thread توی پایتون اجرا بشه؟ پس چرا کتابخونه threading داریم ؟
۲- توی یک برنامه کاملاً پایتونی ( fortran, C, ... درگیر نباشه) بنظر شما کدوم مورد سریعتر هست و چرا ؟
threading یا asynchronous
۳- حالتی به ذهنت میرسه که توی یک کد کاملا پایتونی استفاده از threading بهتر از asynchronous باشه ؟
چرا این سوالات ؟ چون خسته شدم انقدر که سختترین سوال مصاحبه این بود که؛ کی از threading استفاده کنیم کی از multi-process ؟ گفتم چندتا سوال خوب برای مصاحبه طرح کنم، البته دارم روش کار میکنم. ۴-۵ تا دیگه اضافه میشه
BY Python Hints
Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283
That strategy is the acquisition of a value-priced company by a growth company. Using the growth company's higher-priced stock for the acquisition can produce outsized revenue and earnings growth. Even better is the use of cash, particularly in a growth period when financial aggressiveness is accepted and even positively viewed.he key public rationale behind this strategy is synergy - the 1+1=3 view. In many cases, synergy does occur and is valuable. However, in other cases, particularly as the strategy gains popularity, it doesn't. Joining two different organizations, workforces and cultures is a challenge. Simply putting two separate organizations together necessarily creates disruptions and conflicts that can undermine both operations.
The seemingly negative pandemic effects and resource/product shortages are encouraging and allowing organizations to innovate and change.The news of cash-rich organizations getting ready for the post-Covid growth economy is a sign of more than capital spending plans. Cash provides a cushion for risk-taking and a tool for growth.